package com.lvmama.java.rhino.spark.utils;

/**
 * Created by lvzimin on 16/4/1.
 */
public class LogEnums {

    /**
     * 产品类型
     */
    public static enum PRODUCT_TYPE {
        TICKET;
//        INLAND,
//        AROUND,
//        OUTBOUND,
//        VISA,
//        HOTEL,
//        CRUISE;

        public static PRODUCT_TYPE randomProductTypeEnum() {
            return values()[(int) (Math.random() * values().length)];
        }

        public static String randomProductType() {
            return values()[(int) (Math.random() * values().length)].name();
        }
    }

    /**
     * 访问日志类型
     */
    public static enum LOG_TYPE {
        INDEX,
        //        CHANNEL,
//        SEARCH,
        ACTIVITY,
        DETAIL,
        //        ORDER_INPUT,
        ORDER_CREATE;
//        PAYMENT;

        public static LOG_TYPE randomLogTypeEnum() {
            return values()[(int) (Math.random() * values().length)];
        }

        public static String randomLogType() {
            return values()[(int) (Math.random() * values().length)].name();
        }

    }

    /**
     * 第一渠道
     */
    public static enum FIRST_CHANNEL {
        IPHONE,
        ANDROID,
        IPAD,
        WAP;

        public static String randomFirstChannel() {
            return values()[(int) (Math.random() * values().length)].name();
        }
    }

    /**
     * 第二渠道
     */
    public static enum SECOND_CHANNEL {
        LVMM,
        ANDROID_360,
        ANDROID_91,
        GOAPK,
        QQ,
        XIAOMI,
        GFAN,
        HIAPK,
        WANDOUJIA,
        APPCHINA,
        BAIDU,
        SAMSUNG,
        NDUO,
        LENOVO,
        ANDROID_3G,
        HUAWEI,
        WOSTORE,
        MUMAYI,
        EOEMARKET,
        YIDONGMM,
        ZTE,
        MEIZU,
        COOLMART,
        CROSSMAO,
        GOOGLEPLAY;

        public static String randomSecondChannel() {
            return values()[(int) (Math.random() * values().length)].name();
        }
    }
    
    /**
     * 请求耗时类型
     */
    public static enum REQUEST_TIME_TYPE{
    	DUBBO("DUBBO请求"),
    	HESSION("HESSION请求"),
    	ALL("整体请求"),
    	OTHER("其他");
    	
    	public String cnName;
    	
    	private REQUEST_TIME_TYPE(String cnName) {
    		this.cnName = cnName;
    	}
    }
}
